export default {
  // 修改省市区街道数据
  refreshAreaList(state, list) {
    console.log(list)
    state.areaList = list;
  },
  // 修改异步加载省市区街道最顶级的数据缓存
  refreshSyncAreaList(state, list) {
    state.areaListSync.topList = list;
  },
  /*
  * 修改异步加载省市区街道子集数据缓存
  * params说明 code-父级的code，list-子集的数据
  * */
  refreshSyncAreaListChild(state, params) {
    state.areaListSync[params.code] = params.list;
  },
  // 修改用户权限数据
  refreshUserRights(state, params) {
    state.userRights = params;
  },
  // 清除用户权限
  removeUserRights(state) {
    state.userRights = [];
  }
}
